"ui";
ui.layout(
  <vertical>
    <button id="btn">牙叔教程</button>
  </vertical>
);
ui.btn.on("click", (view) => {
  if (view.isPressed()) {
    toastLog("你点我了");
  } else {
    toastLog("你没点我");
  }
});

setTimeout(() => {
  ui.btn.performClick();
}, 2000);
